<?php

namespace app\admin\controller;

use app\admin\controller\CommonController;
use app\util\Util;
use app\admin\model\Admin;

/*
* 主页
*/
class MainController extends CommonController
{
    /*
    * 主页页面
    */
    public function index()
    {
        $list = Admin::field('id, username, time')->order('time asc')->paginate(10);

        return view('index', ['list' => $list]);
    }

}
